define(function() {
    return ['$scope','$location', '$interval','$timeout', function($scope,$location,$interval,$timeout) {
    	$scope.$emit("top-show",'true');//顶部显示
    	$scope.$emit('menuTypeLight','loan'); 	//控制底部menu高亮
    	$scope.$emit('bub-menu','false'); 	//显示底部menu
    	$scope.$emit('flag-tag','3'); 	//显示底部文字
    	
    	
    	//立即申请免息贷
    	$scope.applyforNow = function(){
    		//判断有没有登录
    		if(transData.sessionId != null && transData.mobileNo != ""){
    			if(resultData.loginUserData.userName != "" && resultData.loginUserData.userName != null){
    				$scope.$emit("goNext","/fireLoanForm");
    			}else{//未完善资料用户不可申请免息贷
					$scope.$emit("promptAlertMsg","请先去'我的'里面完善个人信息");
	    			$scope.$emit("showCollect",true);
	    			$timeout(function(){
	    				$scope.$emit("showCollect",false);
	    			},transData.promptTime);
    			}
    			
    		}else{
    			transData.gotoUrl = "/fireLoanForm";
    			$scope.$emit("goNext","/login");
    		}
    		
    	}
        $scope.$apply();
    }];
});